var name = argument0;
var item = argument1;
var initialized = false;
if(is_real(item))
{
    initialized = item != 0;
}
if(is_string(item))
{
    initialized = item != "";
} 
if(is_ptr(item))
{
    initialized = item != 0 && item != noone;
}
if(initialized)
{
    show_debug_message(string(name) + " is initialized? true"); 
}
else
{
    show_debug_message(string(name) + " is initialized? false");
}
